<template>
  <div class="divBox">
    <div class="root">
      <div>
        <div id="your-mount-point"></div>
      </div>
    </div>
  </div>
</template>
<script>
import "@/api/feishuSdk.js";
import {getAccoutBaseInfo} from "@/api/tenant";
import Cookies from 'js-cookie'
import { getAppId } from "@/config/dictHelper";
import {
  getFeishuInformation,
  putFeishuUpdateByNum,
  getFeishuFormInformation
} from "@/api/feishuApi";

export default {
  name: "approve",

  data() {
    return {
      baseInfo:{},
      app_id: "cli_a205c375b139d013",
      code: "",//测试写死
      openId: "",
      signature: "",
      appId: "",
      timestamp: "",
      nonceStr: "",
      url: "",
      jsApiList: ["DocsComponent"],
      lang: "",
      isShow: false,
      fileUrl: "https://www.feishu.cn/approval/admin/approvalList?devMode=on",
      fileToken: "",
      //  replaceTextList 高量区数据 textList替换数据  后面再字典加
      positionList:[],
      position:"",
      templateNum:'',
    };
  },

  methods: {
     

    sendCode() {

      let url = this.fileUrl;
       window.location.href=url
      window.open(url);
    },

  },
  mounted() {
   
       this.sendCode();
      
  },
  created() {
    this.templateNum = this.$route.query.templateNum;
  },
};
</script>
<style scoped>
.root {
  padding-left: 30px;
  padding-right: 30px;
  background: #ffffff;
  box-shadow: 0px 2px 8px 0px #eaf0f3;
  border-radius: 8px;
  /* margin: 10px 28px; */
  overflow: auto;
  font-family: PingFangSC-Regular, PingFang SC;
}
.top-title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 10px 0px;
  /* height: 24px; */

}
.pro-title{
  font-size: 18px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: #24A776;
  line-height: 18px;
}
.feishu-btn{
  background: #26B581;
  border-radius: 3px;
  padding: 9px 12px;
  color: #FFFFFFFF;
  border: none;
}
.feishu-btn:active{
  opacity: 0.8;
}
.span-text > span{
  font-size: 13px;
  padding-left: 4px;
 
  font-weight: 400;
  color: #808EA5;
  line-height: 13px;
}
.ff-ppc{
 font-family: PingFangSC-Regular, PingFang SC;
}
.mag-rl{
  margin: 0px 8px ;
}

</style>
